﻿#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
typedef int SLDataType;

typedef struct seqlist {
	SLDataType* a;
	int size;
	int capacity;
}SL;

void SeqlistDestory(SL* ps);
void SLcheckcapacity(SL* ps);
void Seqlistprint(SL* ps);
void SeqlistInit(SL* ps);
void SeqlistPushBack(SL* ps, SLDataType x);
void SeqlistPopBack(SL* ps);
int SeqlistFind(SL* ps, SLDataType x);
void SeqlistInsert(SL* ps,int pos, SLDataType x);
void SeqlistInsert(SL* ps, int pos, SLDataType x);

void SeqlistPushBack(SL* ps, SLDataType x);
void SeqlistPopFront(SL* ps);
int Seqlistfind(SL* ps, SLDataType x);
void SeqlistInsert(SL* ps, int pos, SLDataType x);
void SeqlistErase(SL* ps, int pos);

